package com.lq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @author luoqian
 * @date 2022/4/2 9:34
 */
@TableName(value = "t_flight")
@Data
public class Flight {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    @TableField(value = "flight_no")
    private String flightNo;
    @TableField(value = "model")
    private String model;
    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;
    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    @TableField(value = "price")
    private Integer price;
    @TableField(value = "ticket")
    private Integer ticket;
    @TableField(value = "route_no")
    private String routeNo;
    @TableField(value = "start_city")
    private String startCity;
    @TableField(value = "end_city")
    private String endCity;
}
